<?php

/*  lamp-shade_0.1
 *  License: GNU GPL v3
 *  File: ./modules/content_items/profile.php
 *  Last Mod.:  02/11/11 by Werner
 *  Authors:    Werner Roets
 *              Frank Adrian
 *  Description:
 *  The profile class is an implementation of the Content_item class.
 *  This is an example content_item and a quick way to display a profile;
 */

require_once("./modules/content_items/content_item.php");
    
class Profile extends Content_item
{
    public $Username;
    public $Firstname;
    public $Lastname;
    public $Age;
    public $Location;
    public $Email;
    
    public function __construct($username)
    {
        $this->Username = $username;
    }
    
    public function Render()
    {
        print "<div>";
        print "<b>Username</b>: " . $this->Username . "</br>";
        if(isset($this->Firstname))
        {
            print "<b>First name</b>: " . $this->Firstname. "</br>";
        }
        if(isset($this->Lastname))
        {
            print "<b>Last name</b>: " . $this->Lastname. "</br>";
        }
        if(isset($this->Email))
        {
            print "<b>Email</b>: " . $this->Email. "</br>";
        }
        if(isset($this->Age))
        {
            print "<b>Age</b>: " . $this->Age. "</br>";
        }
        if(isset($this->Location))
        {
            print "<b>Location</b> " . $this->Location. "</br>";
        }
        
        print "</div>";
    }
}